package com.tianyadu.security.validate.code;

import com.tianyadu.security.core.validate.code.image.ImageCode;
import com.tianyadu.security.core.validate.code.service.ValidateCodeGenerator;
import org.springframework.stereotype.Component;
import org.springframework.web.context.request.ServletWebRequest;

/**
 * @FileName: DemoImageCodeGenerator
 * @Description:
 * @author: xueyj
 * @create: 2018-12-11 17:47
 */
// @Component("imageValidateCodeGenerator")
public class DemoImageCodeGenerator implements ValidateCodeGenerator {

    /**
     * 生成校验码
     *
     * @param request
     * @return
     */
    @Override
    public ImageCode generate(ServletWebRequest request) {
        System.out.println("自定义图形验证码生成（覆盖原有图片验证码生成逻辑）");
        return null;
    }
}